package ModelLayer;

import java.util.ArrayList;

public class SalesOrder {
	
	private int salesID;
	private double totalPrice;
	private String saleDate, deliveryDate, deliveryStatus;
	private ArrayList<SalesLineItem> sli = new ArrayList<SalesLineItem>(); 
	private SalesOrder customer;
	private SalesOrder employee;
	
	public SalesOrder(int salesID, double totalPrice, String saleDate, 
			String deliveryStatus, String deliveryDate, SalesOrder customer, SalesOrder employee)
	{
		this.salesID = salesID;
		this.totalPrice = totalPrice;
		this.saleDate = saleDate;
		this.deliveryDate = deliveryDate;
		this.deliveryStatus = deliveryStatus;
		this.customer = customer;
		this.employee = employee;
		
	}
	
	public SalesOrder() {
		
	}

	public SalesOrder(int customerID) {
		// TODO Auto-generated constructor stub
	}

	public String getDeliveryStatus() {
		return deliveryStatus;
	}
	public void setDeliveryStatus(String deliveryStatus) {
		this.deliveryStatus = deliveryStatus;
	}
	public double getPrice() {
		return totalPrice;
	}
	public void setPrice(double price) {
		this.totalPrice = price;
	}
	public String getDeliveryDate() {
		return deliveryDate;
	}
	public void setDeliveryDate(String diliveryDate) {
		this.deliveryDate = diliveryDate;
	}
	public String getSaleDate() {
		return saleDate;
	}
	public void setSalesDate(String saleDate) {
		this.saleDate = saleDate;
	}
	public int getSalesID() {
		return salesID;
	}
	public void setSalesID(int salesID) {
		this.salesID = salesID;
	}

	public ArrayList<SalesLineItem> getSli() {
		return sli;
	}

	public void setSli(SalesLineItem sli) {
		this.sli.add(sli);
	}

	public SalesOrder getCustomer() {
		return customer;
	}

	public void setCustomer(SalesOrder salesC){
		this.customer = salesC;
	}
	
	public SalesOrder getEmployee() {
		return employee;
	}

	public void setEmployee(SalesOrder salesE) {
		this.employee = salesE;
	}
}

